/*
 * @Description:
 * @version:
 * @Author: 潘骏杰
 * @Date: 2021-11-30 13:42:40
 * @LastEditors: 潘骏杰
 * @LastEditTime: 2021-11-30 14:59:19
 */
export default {
  halfTime(text) {
    const halfTime = {
      AM: '上午',
      PM: '下午',
      NIGHT: '晚上',
      ALL_DAY: '全天'
    }
    return halfTime[text]
  },
  getOperationStatus(text) {
    const getOperationStatus = {
      0: '预约成功',
      1: '已取消',
      2: '已挂号',
      3: '已就诊',
      4: '挂号失败'
    }
    return getOperationStatus[text]
  },
  timestatus(text) {
    const timeStatus = {
      上午: 'AM',
      下午: 'PM',
      全天: 'ALL_DAY'
    }
    return timeStatus[text]
  },
  week(text) {
    const week = {
      0: '周日',
      1: '周一',
      2: '周二',
      3: '周三',
      4: '周四',
      5: '周五',
      6: '周六'
    }
    return week[text]
  }
}
